<?php

//checks to see if username exists
//if it doesnt add a row to the users table

	include("config.php");

	$query="insert into `CART` values('','" . $_POST['userId'] . "','" . $_POST['powerId'] . "')";
		
$rs = mysql_query($query);
echo "<success>Success</success>\n";

/*		$query1="SELECT PRICE FROM POWER WHERE POWER_ID = " . $_POST['powerId'];
		$results = mysql_query($query1);
		
		while($row = mysql_fetch_assoc($results)) {
			echo "<price>" . $row['PRICE'] . "</price>\n";
			}
*/	
?>

